package com.itheima.springbootwebtlias.service;

import com.itheima.springbootwebtlias.pojo.EmpQueryParam;
import com.itheima.springbootwebtlias.pojo.PageResult;
import com.itheima.springbootwebtlias.pojo.Student;
import com.itheima.springbootwebtlias.pojo.StudentQueryParam;

import java.util.List;

public interface StudentService {
    //  分页 +条件 查询
    PageResult page(StudentQueryParam queryParam);

    //查询所有学员
    List<Student> selectAll();

    //添加学员
    void saveStudent(Student student);

    //删除学员/批量删除
    void removeBatch(List<Integer> ids);

    //修改学员
    void update(Student student);

    //根据id查询学员
    Student queryById(Integer id);

    //违纪处理
    void violation(Integer id, Integer score);
}
